﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows;

using Metriks.Parsiranje.Klase;

namespace Metriks.Refactoring
{
    public static class Renamer
    {
        public static void renameVariable(List<LOC> linesOfCode, String oldName, String newName)
        {
            for (int i = 0; i < linesOfCode.Count; i++)
            {
                Renameable renameableLineOfCode = linesOfCode[i] as Renameable;
                if (renameableLineOfCode != null)
                {
                    renameableLineOfCode.renameVariable(oldName, newName);
                }
            }
        }
    }
}
